<template>
	<view class="taskmain">
		<view class="tasks" v-for="(item,index) in taskdatas" 
		:key="index"
		@click="tasksclick(item)">
			{{item}}
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				  taskdatas:['系统消息','邮件通知','短信通知']
			}
		},
		methods: {
			tasksclick(item){
				uni.setStorageSync('remindway',item);
				uni.navigateBack({
				    delta: 1
				});
			},
			
		}
	}
</script>

<style lang="scss">
.taskmain{
	border-top:1px solid #CDD0DC ;
	padding-left: 30rpx;
	.tasks{
		height: 100rpx;
		line-height: 100rpx;
		font-size: 12px;
		border-top: 1px solid #CDD0DC;
		border-bottom: 1px solid #CDD0DC;
	}
}
</style>
